<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</meta>
<title>F().html</title>
<link type="text/css" rel="stylesheet" href="../css/admin.css" />
<link type="text/css" rel="stylesheet" href="../css/item_show.css" />
<script type="text/javascript" src="../../1st.js"></script>
<script type="text/javascript" src="../../1st.highlight.js"></script>
</head>
<body id="split">
<div id="content">
	<div rel="F.param">
		<h2><span>返回值:</span>F().html</h2>
					<h3>概述 : 设置指定元素的HTML代码</h3>
									<h3>语法1：F().html()</h3>
							<div>描述：获取innerHTML</div>
						<table class="args">
				<!--caption>参数列表：(0)</caption-->
				<tr><th>参数名称</th><th>类型</th><th>描述</th></tr>
								<tr><td colspan="3">&nbsp;</td></tr>
				<tr><td>返回值</td><td>String</td><td>返回HTML代码</td></tr>
			</table>
					<h3>语法2：F().html(htmlcode,default)</h3>
							<div>描述：设置innerHTML</div>
						<table class="args">
				<!--caption>参数列表：(2)</caption-->
				<tr><th>参数名称</th><th>类型</th><th>描述</th></tr>
									<tr><td><strong>htmlcode</strong></td><td>String</td><td>HTML代码</td></tr>
									<tr><td><strong>default</strong><em> (可选)</em></td><td>Number,String</td><td>默认值</td></tr>
								<tr><td colspan="3">&nbsp;</td></tr>
				<tr><td>返回值</td><td>fdoms</td><td>返回DOM链</td></tr>
			</table>
				<div class="example">
			<h3>示例 : </h3>
						
							<h5 xmlns="">HTML代码:</h5>
				<pre xmlns=""><code id="htmlbox"></code></pre>
									
				<h5 xmlns="">JS代码:</h5>
				<pre xmlns=""><code id="jsbox"></code></pre>
										
				<h5 xmlns="">结果:</h5>
				<pre xmlns=""><code id="resultbox"></code><code></code></pre>
					</div>
		<div style="text-align:right">
			
					
				<button onclick="window.open('../codepages/14.html');">运行代码</button>
						
		</div><br/>	
		<div>
			<h3>同类参考 :</h3>
			<div>
							<span><a href='24.html'>F().attr</a></span>&#12288;|&#12288;							<span><a href='15.html'>F().val</a></span>&#12288;|&#12288;							<span><a href='17.html'>F().src</a></span>						</div>
		</div>
	</div>
</div><br />

<textarea id="css" style="display:none;"></textarea>
<textarea id="html" style="display:none;"><select id="selectbox"></select>

<div id="box5" style="display:none;">I am box5</div>

<div id="box">
	<div id="box1"></div>
	<div id="box2"></div>
	<div id="box3"></div>
	<div id="box4"></div>
</div></textarea>
<textarea id="js" style="display:none;">var htm = '<option>1</option><option>2</option><option>3</option><option>4</option>';
F("selectbox").html(htm,3);
alert(F("selectbox").html(true));


F("box1").html("aaa");
F("box2").html([1,2,3]);
F("box3").html(function(me){return "I am "+me.index()});
F("box4").html(F("box5"));
alert(F("box").html());
alert(F("box").html(true));</textarea>
<textarea id="result" style="display:none;"><select id="selectbox">
	<option>1</option>
	<option>2</option>
	<option checked="checked">3</option>
	<option>4</option>
</select></textarea>


<script type="text/javascript">
var css = F('css').val();
var html = F('html').val();		
var js = F('js').val();
var result = F('result').val();
css && F('cssbox').highlight(css, "css");
html && F('htmlbox').highlight(html, "html");
js && F('jsbox').highlight(js, "js");
result && F('resultbox').highlight(result,"js");
</script>

</body>
</html>